package entity;

import java.util.List;

public class MyResult<T> {
    private int code;
    private String msg;
    private long count;
    private T Data;
    public MyResult(){}

    public MyResult(int code, long count, T data) {
        this.code = code;
        this.count = count;
        Data = data;
    }

    public MyResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public MyResult(int code, String msg,T Data) {
        this.code=code;
        this.msg=msg;
        this.Data=Data;
    }

    public MyResult(int code) {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }
}
